<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title>已报送信息</title>
    <#include "/common/resource.ftl">
    <script type="text/javascript">
        var getSearchParams = function(){
            return {
            	searchInput:$("input[name='searchInput']").val() || "",
            };
        }
    </script>
</head>
<body class="bg-gray">

   <div class="ui-operation">
       <div class="ui-buttons">
   		 <div class="layui-btn-group tools">
            <button class="layui-btn layui-btn-normal open-dialog" p="url:'${params.contextPath}/view/icip/information/information_edit.htm',title:'信息报送',width:'100%',height:'100%'">
				<i class="fa fa-plus"></i>信息填报
			</button>
			<button class="layui-btn layui-btn-normal export-button">
				<i class="fa fa-download"></i>导出
			</button>
         </div>   
         <div class="ui-searchs">
             <div class="value" style="">
             
                 <input type="text" name="searchInput" placeholder="输入信息标题、签发单位查询" style="width: 200px;">
             </div>
             <input type="button" value="搜索" class="layui-btn layui-btn-danger search-button"/>
         </div>
       </div>
   </div>
   <div class="ui-content" style="padding-left: 10px;padding-right:10px;">
       <table id="datagrid" options="url:'${params.contextPath}/web/information/myOrgPage.json',params:'getSearchParams',dblClickRow:'showDetail'">
			<thead>
               	<tr>
                   <th data-options="field:'title',width:100">信息标题</th>
                   <th data-options="field:'code',width:60">信息编号</th>
                   <th data-options="field:'templateName',width:60">报送模板</th>
                   <th data-options="field:'signerName',width:40">签发人</th>
                   <th data-options="field:'signOrgName',width:80">签发单位</th>
                   <th data-options="field:'creatorName',width:40">报送人</th>
                   <th data-options="field:'createTimeStr',width:80,align:'center'">报送时间</th>
				</tr>
			</thead>
       </table>
   </div>
   
</body>
<script type="text/javascript">
$(function(){
    $(".export-button").click(function () {
        window.location.href = '${params.contextPath}/web/information/orgExport.json';
    });

});
function showDetail (index, row) {
    var url = "${params.contextPath}/view/icip/information/information_detail.htm?id=" + row.id;
    DialogManager.openDialog("url:'" + url + "',title:'信息详情',width:'90%',height:'90%'");
};
</script>
</html>
